<template>
  <div>
    <van-empty description="还没有相关的订单" size="20px" />
    <div class="cart-txt">
      还没找到订单? 试一试
      <button @click="gAll" class="cart-btn">查看全部</button>
    </div>
  </div>
</template>
<script>
export default {
  name: "Share",
  methods: {
    gAll() {
      this.$parent.inital = "All";
      this.$parent.currentIndex = 0;
    },
  },
};
</script>
<style scoped>
.cart-txt {
  color: #9c9c9c;
  text-align: center;
  font-size: 15px;
}
.cart-btn {
  border: none;
  background: transparent;
  color: #0076ff;
}
</style>